<!DOCTYPE HTML>
<html>
<head>
  <meta charset="utf-8">
  <title>test</title>
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1, target-densitydpi=medium-dpi, user-scalable=no">
  <meta property="og:site_name" content="test"/>
  <script src="file:///android_asset/zepto.js" type="text/javascript"></script>
    <style>
        .entry{
        -webkit-padding-start: 30px;
        }
        .entry li {
        line-height: 29px;
        margin-left: -10px;
        }
        .entry li div{
        margin-right: 10px;
        padding-left: 8px;
        padding-top: 8px;
        padding-bottom: 8px;
        background: #222222;
        color: white;
        word-break: break-all;
        -ms-word-wrap: break-word;
        word-wrap: break-word;
        line-height: 15px;
        font-size: 10pt;
        }
        .entry li button{
        margin-top: 5px;
        width: 60px;
        height: 35px;
        color: #111111;
        }
    </style>
  <script>
  </script>
</head>

<body>
<div class="blog-header">
  <h3>Java Interface 可用接口列表测试</h3>
</div>
<ul class="entry">
    <li>
        获得设备IMSI<br/>
        代码：<br/>
        <div>
            alert(
                HostApp.getImei()
            );
        </div>
        <button onclick="HostApp.getImei(function(imei) { alert(imei);});">测试</button>
    </li>

    <br/>
    <li>
        异步回调，传入js函数到Java方法,设定3秒后回调<br/>
        代码：<br/>
        <div>
            HostApp.delayJsCallBack(3000, 'call back haha', function (msg) {
                alert(msg);
            });
        </div>
        <button onclick="HostApp.delayJsCallback(3000,'call back haha',1.5,function (msg) {alert(msg);});">测试</button>
    </li>
    <br/>
</ul>

</body>
</html>
